﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Tracy.DataModel;
using SharedLib.MessageFramework.Messages;
using SharedLib.MessageFramework.Handlers;

namespace Tracy.Handlers
{
    public class FileMonitorHandler_FullScan : TaskMessageHandler
    {
        protected override void ProcessMessage(TaskMessage msg)
        {
            List<MediaFile> filesToCheck = TracyFacade.Instance.MediaFileProvider.GetItems();
            TaskMessage taskMsg = new TaskMessage(this, typeof(FileMonitorHandler), filesToCheck, msg);
            taskMsg.CallBack = msg.CallBack;
            TracyFacade.Instance.MessageDispatcher.EnqueueMessage(taskMsg);
        }
    }
}
